-- GENERATED SPELL FOR [Tharil'zun] --


function spell0_486(pUnit, Event) --@Battle Fury,Self--
pUnit:FullCastSpellOnTarget(3631,pUnit)
pUnit:RegisterEvent('Sorts_486', 639, 1)
end

function spell1_486(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(3019,pUnit)
pUnit:RegisterEvent('Sorts_486', 15000, 1)
end

function spell2_486(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(6533,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_486', 2328, 1)
end

function Sorts_486(pUnit, Event)
local choix_sorts_486 = math.random(0, 2)
if choix_sorts_486 == 0 then
pUnit:RegisterEvent('spell0_486', 1, 1)
end
if choix_sorts_486 == 1 then
pUnit:RegisterEvent('spell1_486', 1, 1)
end
if choix_sorts_486 == 2 then
pUnit:RegisterEvent('spell2_486', 1, 1)
end
end

function mob486_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_486', math.random(1500, 3000), 1)
end

function mob486_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob486_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob486_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(486, 1, 'mob486_Action')
RegisterUnitEvent(486, 2, 'mob486_Leave')
RegisterUnitEvent(486, 3, 'mob486_Kill')
RegisterUnitEvent(486, 4, 'mob486_Die')
